Skip to content

feat(slate): speed card, cache section and battery context bar in the sidebar - #134

Open
GaganSD wants to merge 5 commits into
mainfrom
feat/slate-perf-sidebar
Open

GaganSD wants to merge 5 commits into
mainfrom
feat/slate-perf-sidebar

Conversation

@GaganSD

@GaganSD GaganSD commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Rebuilds the top of the pi-slate session rail around status, a single context bar, a speed hero card and a prompt-cache section.
  • Speed shows exact end-to-end tok/s per response (live estimate while streaming) with a zero-based braille graph.
  • Cache shows hit %, read/write/new split, estimated savings and a warm/cold countdown when the provider publishes a cache lifetime.
  • CONTEXT, SPEED and CACHE share one layout; CONTEXT is drawn as a single-row battery bar. Docs updated.

This work was only on a local branch (feat/slate-perf-sidebar, based on an older main). It has been rebased onto current main.

Test plan

  • npm run typecheck --prefix pi-slate
  • npm test --prefix pi-slate (684 passing)
  • Smoke-tested in the local Pi setup

Rebuild the top of the session rail around status, a single context bar,
a speed hero card (exact end-to-end tok/s per response, live estimate
while streaming, zero-based braille graph) and a prompt-cache section
(hit %, read/write/new split, estimated savings, warm/cold countdown
when the provider publishes a cache lifetime). Facts come from one
cached pass over the active branch; the rail adapts to terminal height.
CONTEXT, SPEED and CACHE now share a heading row (label left, key
figure right), one full-width visual row using the same bar glyphs, and
labelled detail rows. Speed shows only exact per-response figures and
the turn average uses the same eligible responses as the peak. Short
terminals keep the CONTEXT heading row instead of the legacy meter.
The thin ━ line read as a section divider. CONTEXT now fills a two-row
battery body with an eighth-step charging edge and a centred terminal
nub that lights up at 100%.
@GaganSD
GaganSD force-pushed the feat/slate-perf-sidebar branch from 24df77c to 83e69e3 Compare November 18, 2026 04:33

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant